import common from "../common";
import constants from "../constants";

const sysGroupDutyApi = {
    findSysGroupDutys: (data, success, error) => {
        return common.requestData(constants.API_FindSysGroupDutys, data, success, error);
    },
    findSysGroupDuty: (data, success, error) => {
        return common.requestData(constants.API_FindSysGroupDuty, data, success, error);
    },
    saveSysGroupDuty: (data, success, error) => {
        return common.requestData(constants.API_SaveSysGroupDuty, data, success, error);
    },
    batchDeleteDuty: (data, success, error) => {
        return common.requestData(constants.API_BatchDeleteDuty, data, success, error);
    },
};

export default sysGroupDutyApi;
